/********************
 * 考核启动
 */
import request from '@/router/axios'

// 查询考核启动列表
export function examineList(obj) {
    return request({
        url: '/appr-event/routineAssess/page',
        method: 'get',
        params: obj
    })
}

// 新增指标考核
export function addExamine(obj) {
    return request({
        url: '/appr-event/routineAssess',
        method: 'post',
        data: obj
    })
}
// 删除指标考核
export function deleteExamine(id) {
    return request({
        url: `/appr-event/routineAssess/${id}`,
        method: 'delete',
    })
}

// 删除指标考核
export function updateExamine(data) {
    return request({
        url: `/appr-event/routineAssess/`,
        method: 'put',
        data: data
    })
}
// 启动或者停止指标考核
export function startOrEndExamine(type, id) {
    return request({
        url: `/appr-event/routineAssess/assess/${type}/${id}`,
        method: 'put',
    })
}


// 启动或者停止指标填报
export function startOrEndFillin(type, id) {
    return request({
        url: `/appr-event/routineAssess/complete/${type}/${id}`,
        method: 'put',
    })
}
